package com.mystore.common.utils.string;

import java.util.Random;

public class VerifyCodeUtils {
    private static Random random =new Random();;
    public static String buildVerifyCode(){
        String baseNumLetter= "12345678901234567890ABCDEFGHJKLMNPQRSTUVWXYZ";
        StringBuffer sBuffer = new StringBuffer();
        String ch="";

        for(int i = 0;i < 6;i++){
            int dot = random.nextInt(baseNumLetter.length());
            ch = baseNumLetter.charAt(dot) + "";
            sBuffer.append(ch);
        }
        return sBuffer.toString();
    }
}
